﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MaxLenghtedString
{
    class Program
    {
        static void Main()
        {
            string[] names = { "Short", "This is longer", "This one here is the longest", "and something else" };

            int longestLenght = names.Max(x => x.Length);
            var longestString = names.First(x => x.Length == longestLenght);
            Console.WriteLine(longestString);
            
        }
    }
}
